require('babel-register');
require('babel-polyfill');

console.log("SECHAIN_ENV=" + process.env.SECHAIN_ENV);
var gas = 10000000;

let config = module.exports = {
  networks: {
    testrpc: {
      host: "192.168.56.102",
      port: 22000, // replace with quorum node port you wish to connect to
	    network_id: "*",
	    gas: 4600000,
	    gasPrice: 0,
      type: "quorum"
    }
  },
  compilers: {
     solc: {
       version: "0.4.18"
     }
  },
  mocha: {
    reporter: process.env.SECHAIN_ENV == "CI" ? "spec" : "spec",
    reporterOptions: {
      code: true,
      reportTitle: 'Smart Contract Test Report',
    }
  }
};

console.log("Truffle test config: " + JSON.stringify(config, null, 2));
